﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="Stylesheet" type="text/css" media="screen" href="Screen.css" />
  <title>STP_StopBridge</title>
</head>
<body>
	<h3>STP_StopBridge</h3>
	<hr />
<pre>
void STP_StopBridge
(
    STP_BRIDGE*   bridge,
    unsigned int  timestamp
);
</pre>
	<h4>
		Summary</h4>
	<p>
		Stops the Spanning Tree Protocol.</p>
	<h4>
		Parameters</h4>
	<dl>
		<dt>bridge</dt>
		<dd>Pointer to an STP_BRIDGE object, obtained from <a href="STP_CreateBridge.html">
			STP_CreateBridge</a>.</dd>
		<dt>timestamp</dt>
		<dd>A timestamp used for the debug log. </dd>
	</dl>
	<h4>
		Remarks</h4>
	<p>
		This function calls <a href="StpCallback_EnableBpduTrapping.html">StpCallback_EnableBpduTrapping</a>
		to restore the switch to its default, non-STP-capable, state.</p>
	<p>
		This function re-enables learning and forwarding. It does so by calling
		<a href="StpCallback_EnableLearning.html">StpCallback_EnableLearning</a> and
		<a href="StpCallback_EnableForwarding.html">StpCallback_EnableForwarding</a>
		for every tree of every port that had either of them disabled.</p>
	<p>
		This function may not be called from within an <a href="STP_CALLBACKS.html">STP callback</a>.</p>
</body>
</html>
